#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    int n, sum = 0;
    int N = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &N);
        sum += N;
    }
    printf("%d\n", sum);
    return 0;
}